﻿using System;
using Microsoft.Extensions.DependencyInjection;

namespace FileStorage.Provider
{
    public static class FileSystemProviderStartupExtensions
    {
        public static FileStorageAppBuilder AddFileSystemProvider(this FileStorageAppBuilder builder, Action<FileSystemProviderOptions> configureAction)
        {
            builder.Services.Configure(configureAction);

            return builder;
        }
    }

    public sealed class FileSystemProviderOptions
    {
        public string Path { get; set; }
    }
}
